package day0327;

import java.util.Arrays;

// {400,  800, 1200, 1600,2000,2400,2800, 3200}
public class Test2 {
    public static void main(String[] args) {
        int[]  ar=new int[8];
        int  rs=Test2.get400times(ar,ar.length-1);
        System.out.println(Arrays.toString(ar));
    }
    //                                   0
    public static  int   get400times(int[]  arr,int index){
        if(index==0){
            return arr[0]=400;//给arr[0]位置存入400
        }else{
            return arr[index]=get400times(arr,index-1)+400;//给arr[index]位置存入get400times(index-1)+400
        }
    }
}
